:root {
  --bg: #f4f8fb;
  --bg-2: #e9f6ff;
  --ink: #11243a;
  --card: #ffffffbd;
  --line: #d7e6f0;
  --accent: #1f9db3;
  --glow: #6bd5f06e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Verdana", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(120deg, var(--bg), var(--bg-2), #d2efff);
  background-size: 180% 180%;
  animation: fluidBG 16s ease infinite;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(12px);
  z-index: -2;
  opacity: 0.42;
}

body::before {
  width: 42vmax;
  height: 42vmax;
  background: #8ce9ff;
  top: -14vmax;
  left: -10vmax;
  animation: drift 14s ease-in-out infinite;
}

body::after {
  width: 46vmax;
  height: 46vmax;
  background: #95b9ff;
  right: -16vmax;
  bottom: -20vmax;
  animation: drift 18s ease-in-out infinite reverse;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 1rem 0 2rem;
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0.8rem;
  z-index: 20;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.container::before {
  content: "";
  position: fixed;
  inset: auto;
  width: 16px;
  height: 16px;
  left: 8%;
  bottom: -40px;
  border-radius: 50%;
  background: #ffffffb8;
  box-shadow:
    130px -120px 0 4px #ffffff8d,
    250px -240px 0 2px #ffffffa3,
    420px -90px 0 6px #ffffff7c,
    610px -260px 0 3px #ffffff99,
    790px -150px 0 5px #ffffff73,
    940px -330px 0 2px #ffffffb5;
  animation: bubbles 18s linear infinite;
  z-index: -1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(10px);
  margin-bottom: 1rem;
  box-shadow: 0 10px 32px #0f456d1a;
  animation: reveal 0.7s ease both;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

nav a:hover {
  transform: translateY(-2px);
  background: #ffffffbd;
  box-shadow: 0 8px 18px #0f4a7426;
}

.hero,
.box {
  border: 1px solid var(--line);
  background: #ffffffdc;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 26px #0e395d14;
  animation: reveal 0.8s ease both;
}

.hero h2 { margin-bottom: 0.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: center;
}

.hero-grid h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.7rem;
}

.eyebrow {
  color: #117f95;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.hero-copy {
  color: #2a4a60;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.btn-primary,
.btn-ghost {
  text-decoration: none;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  border: 1px solid var(--line);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #159ec2, #1a84aa);
  border-color: #2cb6db;
}

.btn-ghost {
  color: var(--ink);
  background: #ffffffbf;
}

.usp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.usp-list span {
  font-size: 0.82rem;
  border: 1px solid #b9d9e9;
  background: #ffffffbd;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #b3d8e8;
  box-shadow: 0 20px 40px #0f456d24;
}

.hero-image-title {
  position: absolute;
  left: 12px;
  bottom: 16px;
  margin: 0;
  background: #071a2fcc;
  color: #f2fbff;
  border: 1px solid #6fb4d4;
  border-radius: 10px;
  padding: 0.38rem 0.65rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.floating-note {
  position: absolute;
  right: -8px;
  bottom: 16px;
  background: #ffffffde;
  border: 1px solid #b8ddeb;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  animation: bob 3.5s ease-in-out infinite;
}

.promo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.promo-strip article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffffea, #eefdff);
  padding: 0.95rem;
  box-shadow: 0 10px 24px #11456a14;
  animation: reveal 0.9s ease both;
}

.promo-strip h3 {
  margin-bottom: 0.4rem;
}

.category-section {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 26px #0e395d14;
  animation: reveal 0.9s ease both;
}

.category-section h2 {
  margin-bottom: 0.8rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.category-card {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fdff 0%, #eef6fb 100%);
  display: grid;
  box-shadow: 0 8px 22px #144a7315;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: -140% -30%;
  background: linear-gradient(120deg, transparent 42%, #ffffff7a 50%, transparent 58%);
  transform: translateX(-40%);
  transition: transform 0.65s ease;
}

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.category-card div {
  padding: 0.7rem;
}

.category-card h3 {
  margin-bottom: 0.35rem;
}

.category-card p {
  font-size: 0.9rem;
  color: #375064;
}

.category-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 14px 26px #0f507d30;
  border-color: #addff0;
}

.category-card:hover::after {
  transform: translateX(42%);
}

.controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  animation: reveal 1s ease both;
}

.load-controls {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.4rem 0 1rem;
}

#loadMoreBottom {
  background: linear-gradient(135deg, #159ec2, #1a84aa);
  border-color: #3bb9da;
}

.section-head {
  margin-bottom: 0.8rem;
  animation: reveal 0.95s ease both;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

input,
button,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem;
}

button {
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px #1f9db342;
  filter: saturate(1.1);
}

#productGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.product {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  background: #ffffffec;
  box-shadow: 0 10px 24px #0d406914;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  animation: revealUp 0.7s ease both;
}

.product-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  background: #eaf4fb;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 26px #134d7730;
  border-color: #a9dff0;
}

.product p { margin: 0.4rem 0; }

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.total {
  margin-top: 0.8rem;
  font-weight: 700;
}

.trust-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.trust-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffffdc;
  padding: 0.9rem;
  box-shadow: 0 10px 20px #0c41671a;
}

.trust-card h3 {
  margin-bottom: 0.35rem;
}

.faq-section {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: #ffffffdb;
}

.faq-section h2 {
  margin-bottom: 0.8rem;
}

.faq-section details {
  border-top: 1px solid #d8e8f3;
  padding: 0.7rem 0;
}

.faq-section details:first-of-type {
  border-top: 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-section p {
  margin-top: 0.5rem;
  color: #375064;
}

.newsletter {
  margin-top: 1rem;
  border: 1px solid #b9ddeb;
  border-radius: 14px;
  background: linear-gradient(135deg, #dff6ff, #c9ecfa);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.9rem;
  align-items: center;
}

.newsletter form {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.newsletter input {
  flex: 1;
  background: #ffffffd9;
}

.landing-footer {
  margin-top: 1rem;
  border-top: 1px solid #bfd9e8;
  padding: 0.9rem 0 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.landing-footer p {
  color: #375064;
}

.landing-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.landing-footer a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid #c6deea;
  border-radius: 8px;
  background: #ffffffb5;
  padding: 0.3rem 0.6rem;
}

#productGrid .product:nth-child(2) { animation-delay: 0.06s; }
#productGrid .product:nth-child(3) { animation-delay: 0.12s; }
#productGrid .product:nth-child(4) { animation-delay: 0.18s; }

@keyframes fluidBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4%, -8%); }
}

@keyframes bubbles {
  0% { transform: translateY(0); opacity: 0.35; }
  100% { transform: translateY(-120vh); opacity: 0.95; }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 850px) {
  #productGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid,
  .newsletter {
    grid-template-columns: 1fr;
  }
  .promo-strip,
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  #productGrid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  header { flex-direction: column; align-items: flex-start; }
  .newsletter form {
    flex-direction: column;
    align-items: stretch;
  }
  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
